<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">
<script src="./Public/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>	   
	</head>
	<body>
		<form  method="post" enctype="multipart/form-data">
		<div class="alert alert-success">添加品牌</div>
		<div class="form-group">
			<label for="exampleInputEmail1">品牌名称</label>
			<input id="exampleInputEmail1" class="form-control" type="text" name="b_name" value="{{$olddata['b_name']}}">
		</div>
		<script type="text/javascript">
			$(function(){
				$(".close_img").click(function(){
					$(".thumb_logo").remove();
					$(".live_img").html('<input id="exampleInputEmail1" type="file" name="b_logo">');
				})
			})
		</script>
		<div class="form-group">
			<label for="exampleInputEmail1">缩略图</label>
			 {{if value = "$olddata['b_logo']"}} 
			    <div class="thumb_logo">
			    	<img src="{{$olddata['b_logo']}}"/>
			    	<a href="javascript:void;" class="close_img">x</a>
			    </div>
			  
			 {{else}}
			
			<input id="exampleInputEmail1" type="file" name="b_logo">
				 {{endif}}
				 <div class="live_img"></div>
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">排序</label>
			<input id="exampleInputEmail1" class="form-control" type="text" name="b_sort" value="{{$olddata['b_sort']}}">
		</div>
		<input type="hidden" name="b_id" id="" value="{{$olddata['b_id']}}" />
		<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
	</body>
</html>
